<!DOCTYPE html>
<head>
	<meta charset="UTF-8">
</head>

<html>

  <body bgcolor="black">

<div id="weather-v2-plugin-standard"></div>
<script src='https://apip.weatherdt.com/standard/static/js/weather-standard-common.js?v=2.0'></script>


<script>


function getQueryVariable(variable){
	var query = window.location.search.substring(1);
	var vars = query.split("&");
	for (var i=0;i<vars.length;i++) {
	    var pair = vars[i].split("=");
	    if(pair[0] == variable){return pair[1];}
	}
	return(false);
}


    var ADDRESS=getQueryVariable("qr");
    WIDGET = {
      CONFIG: {
        "layout": 2,
        "width": "330",
        "height": "370",
        "background": 1,
        "dataColor": "FFFFFF",
        "borderRadius": 5,
        "city": ADDRESS,
        "key": "hMv4cCeskr"
      }
    }


        // function GET_DIV_DATA(__CLASS){
        //     var ok = document.getElementsByClassName(__CLASS,__CLASS);
        //     ok[0].setAttribute("id",__CLASS);
        //     var obj = document.getElementById(__CLASS);
        //     obj.getElementsByTagName("span");

        //     var arr = obj.innerText.split(/\n+/);//以分开
        //     var DATA=[];
        //     for(var i = 0; i < arr.length; ++i){
        //         DATA[i]=arr[i].trim();
        //     }
        //     return DATA;
        //   }

        // function play(){
        //   var weather     = GET_DIV_DATA('wv-n-h-now-txt');
        //   var temperature = GET_DIV_DATA('wv-n-h-now-tmp');
        //   var data1 =ADDRESS+"天气"+weather[0]+",空气质量"+weather[1]+",";
        //   var data2 ="温度"+temperature[0];if(temperature[1]){ data2 ="室外温度"+temperature[0]+",注意"+temperature[1]; }
        //   console.log( data1+ data2 )

        // }
  
        // setTimeout(play, 3000)

        </script>


</html>


   